home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.20041116-20060924 / 000044_jdanskinner@jdanskinner.com_Fri Feb 4 09:15:51 2005.msg < prev    next >
Internet Message Format  |  2020-01-01  |  2KB

  1. Path: newsmaster.cc.columbia.edu!newsfeed.nyu.edu!logbridge.uoregon.edu!newspeer.monmouth.com!HSNX.atgi.net!cyclone-sf.pbi.net!216.218.192.242!news.he.net!newsfeed1.easynews.com!easynews.com!easynews!hwmnpeer01.phx!hwmedia!hw-poster!fe06.lga.POSTED!53ab2750!not-for-mail
  2. From: <jdanskinner@jdanskinner.com>
  3. Newsgroups: comp.protocols.kermit.misc
  4. References: <43185dc2.0502021125.3fa86bf1@posting.google.com>
  5. Subject: Re: Read the buffer
  6. Lines: 40
  7. X-Priority: 3
  8. X-MSMail-Priority: Normal
  9. X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
  10. X-RFC2646: Format=Flowed; Original
  11. X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
  12. Message-ID: <1DfMd.24198$1h1.9394@fe06.lga>
  13. X-Trace: dkoicekneficefklbgneboifjegelgbblfobmadechdedjdeiahondopcjchoebkakfdiilehngidnofiljfiefceckokmgendipabeecgocfchipbmfgacdjkefnliebcfagklmibllijll
  14. NNTP-Posting-Date: Wed, 02 Feb 2005 19:02:37 MST
  15. Date: Wed, 2 Feb 2005 20:00:25 -0600
  16. Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:15278
  17.  
  18. There are many opportunities here but I'll assume you are issuing a unix 
  19. like command
  20. which will give some kind of list you want to capture.
  21.  
  22. The following should be the core after establishing connection:
  23. log session                                            /* open session log 
  24. to hold the data */
  25. lineout ls                                               /* send ls command 
  26. to remote host */
  27. input 0 a-string-you-will-never-receive  /* you can create your own never 
  28. comming string  */*/
  29.                                                             /* but trust me 
  30. you need this */
  31. log session close                                   /* close the session log 
  32. before it gets cluttered
  33.  
  34. You should find the command ls echoed plus
  35. the output of ls
  36. in the file session.log in your working directory.
  37.  
  38. Regards...Dan.
  39.  
  40.  
  41. "Mike" <Michael.Urzen@noaa.gov> wrote in message 
  42. news:43185dc2.0502021125.3fa86bf1@posting.google.com...
  43. > Hi Everyone:
  44. >
  45. > I am dialing into a remote system using C-Kermit 8.0.211, logging in,
  46. > and then issuing commands to receive data.
  47. > This works well in interactive mode and I receive data back to my
  48. > screen.
  49. >
  50. > I need to automate this process and capture the data to a file.
  51. > Using a "kerbang" script, I issue the command to receive data but it
  52. > does not appear on my screen. I searched the "debug.log" file, and
  53. > found the data is going to a buffer.
  54. >
  55. > How do I retrieve data from the buffer and save it to a file? 
  56.  
  57.